﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// GridResponse 的摘要说明
/// </summary>
public class GridResponse
{
    private int code = 0;
    private string msg = "";
    private long count;
    private MyObject data;
    public GridResponse() { }
    public void setCode(int code)
    {
        this.code = code;
    }
    public void setMsg(string msg)
    {
        this.msg = msg;
    }
    public void setCount(long count)
    {
        this.count = count;
    }
    public void setData(MyObject data)
    {
        this.data = data;
    }

    public string toString()
    {
        return "{\"code\":" + code
        + ",\"msg\":\"" + msg + "\""
        + ",\"count\":" + count
        + ",\"data\":[" + data.toString()
        + "]}";
    }
}